import java.util.*;

public class Ch3SortMain{
	public static void main(String[] args){
		String[] B = {"John", "Adams", "Skrien", "Smith", "Jones"};
		Ch3Comparator stringComp = new Ch3StrComparator();
		Ch3Sorter.sort(B, stringComp);

		Integer[] C = {new Integer(3), new Integer(1), new Integer(4), new Integer(2)};
		Ch3Comparator integerComp = new Ch3IntComparator();
		Ch3Sorter.sort(C, integerComp);

		for(int i = 0; i < B.length; i++){
			System.out.println("문자: " + B[i]);
		}
		for(int j = 0; j < C.length; j++){
			System.out.println("숫자: " + C[j]);
		}
	}
}
